import HTMLTestRunner_cn,yagmail
class Tools():
    def Baogao(self):
        aa = HTMLTestRunner_cn.HTMLTestRunner(open('baogao.html','wb'),title='126报告')
        return aa
    def Email(self):
        aa = yagmail.SMTP(user='3153075207@qq.com',password='qhgbeikriqgjdcei',host='smtp.qq.com')
        aa.send(to='3153075207@qq.com',subject='126邮件',contents='发送报告',attachments=['baogao.html'])
        aa.close()